home *** CD-ROM | disk | FTP | other *** search
- LockIt
-
- Copyright © 1993 by Anders Melchiorsen
- Version 1.1 - Released 13-Aug-93
-
-
- LockIt will eat all input events (i.e. signals from the mouse and the
- keyboard) until a password is entered correctly. Thereby you can lock
- the Amiga for input while you're not present; this is helpful when
- friends or small kids are around. It will not uphold the system if it's
- turned off or if somebody reboots, however.
-
- Arguments
- ¯¯¯¯¯¯¯¯¯¯¯
- In the following I will explain the arguments that LockIt accepts.
- These can be enter either on the command line via the Shell, or in the
- tool types of the icon, via the Information window of WorkBench
- (activated by clicking once on the LockIt icon and the chose the item
- Information from the 'Icons' menu (or whatever they are called in your
- locale)).
- Let me as an example take the option PASSWORD: You can either use it
- from the Shell by typing a commandline like 'LockIt PASSWORD "go on"',
- or as a tool type, 'PASSWORD=go on'. The difference is that you enter
- the option and its argument as two words in the Shell, but parted with
- an equal sign in the WorkBench. Also note that you must embed 'go on'
- in double quotation marks when using the Shell. This is true for all
- Shell arguments that includes a space - otherwise it would be treated
- as two arguments.
-
- The GUI
- ¯¯¯¯¯¯¯¯¯
- When the GUI option is specified, LockIt will open a window, and
- whenever a character is entered, a star will appear. You can delete
- characters by using the back space key and this will delete a star,
- too. All in all this gives a visual indication of the lock, instead of
- just freezing all input. When you use the GUI option, LockIt will print
- a text in the window. If you don't like the default, you can simply
- change it by using the LEADTXT option (the default is 'Please enter
- password:').
- If you don't enable the GUI option, then entering the password will
- work slightly diffrent: first of all you will not be able to see
- anything, but what's more important is that you can't use the back
- space key to delete the most recently entered character (i.e. you can't
- correct mistakes). If you make a mistake, just start over again, as
- LockIt will simply lock input until the password is entered correctly
- without interruptions (in the term of wrong characters - you can take
- as long as you wish to enter the password).
-
- Defining password
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- The default password is 'let me in'. This can be altered by the
- PASSWORD option. If you want the Enter key to be a part of the password
- (most likely when the GUI option is used), you must add this yourself.
- This can be done by typing Ctrl-M if you use the icon tool types via WB
- (this will show as a rectangle, if entered correct). Depending on what
- Shell you are using, you might be able to add a Ctrl-M that way, too.
- If you use the GUI option, a maximum of 50 characters is allowed.
-
- Invoking LockIt
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- The best way to use LockIt is to use some utility like QMouse, DirWork
- or Yak to assign the command 'LockIt' plus your password (and perhaps
- the GUI option) to a hotkey. Then you only has to press that hotkey to
- lock the input stream and you don't need to fiddle with Shell or
- Workbench.
- You could also put LockIt it in the s:startup-sequence or the
- WBStartup drawer of your disk, and this way your Amiga will get locked,
- even if somebody reboots. This reboot lock, however, can easily be
- broken by anyone who knows just a little bit about the Amiga. Please
- note that if you're using the GUI option, you should not start LockIt
- before you've run IPrefs, as this will probably give a weird display.
-
- Additional considerations
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- LockIt uses a CTRL-C to signal to itself that a correct password is
- entered. This means that it can be broken by e.g. Commodores Break
- program (in the C: drawer). If you consider this a drawback, please
- start thinking about how anyone should get to execute the Break program
- while the Amiga is locked. This is only possible if someone uses a
- delayed Break, which should be installed before the locking. In fact
- this allows you to lock the computer for a specified maximum time, so
- it's a feature, actually :-)
-
- As Kickstart 1.3 is outdated by now, no attemp has been done to keep
- LockIt running on Kickstarts below 2.0. However, if you don't start it
- from CLI/Shell, but only from the Workbench, it will still run. This is
- because I use an Shell argument handling routine that is only available
- on Kickstart 2.0 and above.
-
- Please don't blame me for the icon. It's ugly, and I know it, but I'm
- a programmer, not a graphics artist. If you should come up with a
- better one, please send it to me, and I will include it in future
- releases that might be, and you'll get some credit as well.
-
- By the way: LockIt is in the Public Domain, whatever that may mean
- nowadays. The one thing that is sure is that I won't get rich no matter
- what I allow, so use LockIt (including source) in any way you please.
-
- Credits
- ¯¯¯¯¯¯¯
- LockIt is inspirated by KeyLock by Andry Rachmat. I was unable to find
- his source so I wrote a locker myself, adding a few new things as well.
- The two major differences are that I believe LockIt works; I know for
- sure that KeyLock doesn't. Also, LockIt has the ability to open a
- window, so you can see what's going on.
-
- Big hellos to all points at The Zone (2:230/314@Fido), especially
- Christian Selmer for his suggestion of the GUI option.
-
- Source
- ¯¯¯¯¯¯
- I have included the source, just in case you might want to take a look
- at it. It's written in DICE C (I'm currently using 2.07.54R) and should
- compile with 'dcc LockIt.c -oLockIt -2.0' or similar.
-
- Author address
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- If you use this program or it's source, if you find any bugs, have any
- suggestions or if you just feel like it, then I would appreciate a
- small letter or, if you have modem access, a NetMail. This is where I
- can be reached:
-
- Anders Melchiorsen
- Gammel Skivevej 39
- 7870 Roslev
- Denmark
-
- 2:230/314.10@FidoNet
-
- History
- ¯¯¯¯¯¯¯¯¯
- Date Size Version Comments
- 30-Jul-93 1668 1.0 Initial release.
-
- 13-Aug-93 3616 1.1 Added GUI option by suggestion of Christian Selmer.
- Now only eats RAWMOUSE and RAWKEY events. Would not
- abort properly if an allocation failed. Changed name
- from InputLock to LockIt, as Simon Gramstup pointed
- out that the InputLock name had been used by Preben
- Nielsen already.
-
-
-
-